#pragma once
#include "Model.h"
#include "Shader.h"
#include "ParticleSource.h"
#include "Simulation.h"

class CSkinner
{
public:
	CSkinner(double vAngleThreshold, graphics::CModel *vModel, CParticleSource *vParticleSource);
	~CSkinner();

	void draw(graphics::CShader vShader);
	void updateAndDraw(graphics::CShader vShader);

private:
	void __initMeshVertices();
	void __updateVertices();

	double m_AngleThreshold = -1.0;
	graphics::CModel *m_pModel = nullptr;
	CParticleSource *m_pParticleSource = nullptr;
	std::vector<std::vector<SMeshVertex>> m_MeshVertices;
};